"
Various types used by SDL2
"
Class {
	#name : 'SDL2Types',
	#superclass : 'SharedPool',
	#classVars : [
		'Int16',
		'Int32',
		'Int64',
		'Int8',
		'SDL_AudioCallback',
		'SDL_AudioDeviceID',
		'SDL_AudioFormat',
		'SDL_BlendFactor',
		'SDL_BlendMode',
		'SDL_BlendOperation',
		'SDL_GLattr',
		'SDL_Keycode',
		'SDL_Keymod',
		'SDL_Scancode',
		'Sint16',
		'Sint32',
		'Sint64',
		'Sint8',
		'Uint16',
		'Uint32',
		'Uint64',
		'Uint8'
	],
	#category : 'OSWindow-SDL2-Bindings',
	#package : 'OSWindow-SDL2',
	#tag : 'Bindings'
}

{ #category : 'class initialization' }
SDL2Types class >> initialize [
	"
	self initialize
	"
	Uint8 := #uint8.
	Int8 := #int8.
	Sint8 := #int8.
	Uint16 := #uint16.
	Int16 := #int16.
	Sint16 := #int16.
	Uint32 := #uint32.
	Int32 := #int32.
	Sint32 := #int32.
	Uint64 := #uint64.
	Int64 := #int64.
	Sint64 := #int64.

	SDL_Keycode := Sint32.
	SDL_Keymod := Uint32.
	SDL_Scancode := Uint32.
	SDL_BlendMode := Uint32.
	SDL_BlendFactor := Uint32.
	SDL_BlendOperation := Uint32.

	SDL_GLattr := #int.
	SDL_AudioDeviceID := #uint32.
	SDL_AudioFormat := #uint16.
	SDL_AudioCallback := #'void*'. "FIXME: use the proper type here."
]
